import { h } from "vue";
import { Icon } from "@iconify/vue";

export const useIcon = () => {
  const renderIcon = (icon: string) => {
    return h(Icon, { icon });
  };
  return { renderIcon };
};
